package com.mo.dao;


import com.mo.pojo.SysRole;
import javafx.scene.control.CheckBox;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Service;

import java.util.List;



@Mapper
public interface SysRoleDao {

    @Select("select * from role")
    List<SysRole> selectRoles(SysRole entity);


    SysRole selectById(Integer id);



    @Select("select id,name from sys_roles")
    List<CheckBox> selectCheckRoles();
}
